package com.baoyi.adapter;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.baoyi.widget.CommentsItemWidget;

public class CommentsAdapter extends BaseAdapter {

	private List<CommentsItemWidget> item;
	private Context curcontext;

	public CommentsAdapter(Context context) {
		curcontext = context;
		item = new ArrayList<CommentsItemWidget>();
		for (int i = 0; i < 20; i++) {
			//item.add(new CommentsItemWidget(curcontext));
		}
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return item.size();
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		return item.get(position);
	}

}
